<?php

namespace app\wechat\controllers;

use app\wechat\core\BaseController;
use app\wechat\interfaces\MainInterface;
use app\wechat\models\MainModel;
use cm;

class MainController extends BaseController implements MainInterface
{
    /*
    * 获取token验证码
    */
    function actionToken()
    {
        return (new MainModel())->actionToken();
    }

    /*
    *获取code
    */
    function actionCode()
    {
    	return (new MainModel())->actionCode();	
    }
}